<?php

namespace App\Task;


use App\Model\OrderSubscribe;
use Hyperf\Crontab\Annotation\Crontab;

class OrderTask extends BaseTask
{


    public function execute()
    {
        $this->logger->info(date('Y-m-d H:i:s', time()));
    }


    /**
     * 定时取消订单
     * @Crontab(rule=" * * * * * ", memo="cancelOrder")
     */
    public function cancelOrder()
    {

        $result = OrderSubscribe::cancelOrder();
    }

}
